Fix 5.0 compatibility.