Fixing bug in form helper