fix #945