fix #339
up #332