Fix API issue causing a console error on delete