deal with the UnboundLocalError
Merge branch 'master' of github.com:caijun/PFD