Fixed inner-box-constraint bug