[Bug] bad condition in main()