Fixed undefined variable error in api_24f.inc