fixed bug with positioning on X axis