Workaround problem with screen resolutions