Fixed a bug where it always fails for operating system.