Fix flaw in setHeight method