Fixed small bug on cascading deletion of results