Fix bug with resource platform string