fixed #366