Fix Debug mode