Bug in api/new