Fixed soft delete bug