fix error in 1.7