fix max height reset