bugfix http://www.oschina.net/question/2795_92396