fixed all resolution bugs