fix #740