fix #327