bugfix using getDeletedAt without checking if method exists