fix under 1.8.7