Fixed some error outputs, still crashes though