fixes debug toolbar bug