Fix "platform" variable reference.