fixed bug with positioning