Fix warning by centering window to  center.