fix potential security issue with set()
Merge pull request #101 from yetanotherhacker/setprotect

fix potential security issue with set()