fixed #984