Fixed bug with positioning of elements