fix #940