修bug

日志见http://blog.luojia.me/2014/09/14/%e4%b8%aa%e4%ba%ba%e5%bc%b9%e5%b9%95%e7%ab%99%e6%9b%b4%e6%96%b0log-20140914/