fix #784