Fix resolution bug