API compability fix.