fix adding task from debug page bug