Solve the error logic when select available platform for compiling.