Fixed the 500 error issue

Zhou Fang requested to merge github/fork/linkfang/zhoufang/master/issue283 into master

Fixes issue283

Merge request reports