fixed #1005