fixed constraints leading bug