Fixed a serious bug, converted all os.system to system