fix #304