Fix maxHeight application