fix #746