undefined error on production