fixed bug when calling build twice in an unsupported platform