fixed #978