Fix for deleting assignments