fixed #999