fix resolution order bug