Fix debug error appearing as soon as the app is launched