corrected problem with max-height