fix #972