Fixing bug in nom controller