#1159 bug fixed (#1164)
#1159 bug fixed (#1164)

* #1159 bug fixed

* #1159 #1164 fixed

tqchen/tvm,Laurawly/tvm-1,tqchen/tvm,sxjscience/tvm,Huyuwei/tvm,Laurawly/tvm-1,tqchen/tvm,Huyuwei/tvm,Laurawly/tvm-1,Huyuwei/tvm,sxjscience/tvm,tqchen/tvm,Laurawly/tvm-1,sxjscience/tvm,tqchen/tvm,sxjscience/tvm,Laurawly/tvm-1,dmlc/tvm,Laurawly/tvm-1,dmlc/tvm,dmlc/tvm,dmlc/tvm,Huyuwei/tvm,dmlc/tvm,sxjscience/tvm,sxjscience/tvm,sxjscience/tvm,Huyuwei/tvm,Huyuwei/tvm,sxjscience/tvm,dmlc/tvm,Laurawly/tvm-1,tqchen/tvm,tqchen/tvm,tqchen/tvm,Huyuwei/tvm,tqchen/tvm,dmlc/tvm,Laurawly/tvm-1,dmlc/tvm,Huyuwei/tvm,tqchen/tvm,Laurawly/tvm-1,dmlc/tvm,Laurawly/tvm-1,Huyuwei/tvm,sxjscience/tvm