In this method we should reset the height as well, because currently is not updated properly (it keeps the last height set).