fix small bugs
Merge branch 'dev' of https://github.com/yupe/yupe into dev