fixed #1003