Fix delete bug in access engine