fixed crash in api_log.dll (super crappy to find):