fixed #1266