fixed is-safe?
Merge pull request #6 from marchtemp/master

fixed a bug in is-safe