fix resolution bug