Fixed the resolution bug.