fix https://github.com/astaxie/beego/issues/117