fixed #1009