Fix issue with cascading deletes. Closes #53