fixes error if can_delete option is set to False