fixes debugtoggle