fix #979