fix some resolution bug