Minor bug fixes for screen resolution