Removed code that caused window dimensions to return 1x1