fixed a bug in slot unassignment.
Merge pull request #184 from abeykoon/fix_bug_in_slot_unassignement

fixed a bug in slot unassignment.