fixed #979