fixes undef object in /new actions