Fixed resolution bug