Fix for changing resolution more than once.