Fix delete entities