Problems with delete entities