fixed #972