fix number constraints