Forgot to declare constrsTop and rulesTop, fixed.