Fix constraints for horizontal mode