Fix could not find object c in main()