Fixed resolution changing.