fix resolution read