fix maxHeight config