Fixed minor issue on getScreenSizeInPoints