Issue377

should fix #377