Dont call maxHeight() before it's defined