fix #794