fix platform parsing