Fixed first launch crash
Improved debug view & error logging