Fix another instance of the resize bug