fixes #582 delete restriction