fix platform initialization