Fix for object centering