fixed #1002