Fixed a bug occurring when identifying the current device os.