prevent error on data deletion