fixes undefined max-height bug
refinements