fixed a bug, and now it can also be worked well on all unix-like OS,
like: Mac OS X, Ubuntu, etc.