Fix id => _id. Add better error output