Bugfix if maxHeight is not set