Version compiling, but not running correctly