fixed bug that was duplicating the components of the generated platform.