minor fix on _del function