Fixed small issue where window was not centered