fix deleting namespace