fixing inconsistent contract checking between main.coffee and admin portal