Fixed a resolution bug