fixing bugs of type
Merge branch 'master' of https://github.com/xwangsd/Scuba