fix for beego 1.3
Merge pull request #2 from beego/master

fix for beego 1.3-MERGE