fixed #318