fix #330