UI object position resetting when applying prefab

I have a UI gameobject in my scene, and the canvas which contains this gameobject is a prefab, my problem is that when I apply the changes I have made to the position of this gameobject both X and Y factors reset to 0. This only happens when this UI gameobject is turned off, so when I turn it back on and apply prefab this problem doesn’t occur.
I am using Unity 2017.3.0f3, I have also tried 2017.1 but I have the same problem.

it`s fixed in 2017.3.1p1
https://unity3d.com/ru/unity/qa/patch-releases/2017.3.1p1