fix max-height transitions