Fix: variable platform redeclares argument

Variable `platform` redeclares argument.