Temporary fix for the preloader getting stuck in debug mode