Fix for menubar not appearing in the right position