model delete() fixed