Fix Device Platform Detect Func