trying to fix exception on deletion.