fix invalid platform