minor corrections to delete_values()
Merge pull request #170 from ptomulik/fix_delete_values

minor corrections to delete_values()