fixed #676