Corrected version of the getplatform