fixed #987