corrects height bug