fixed #674