correct controler error on delete