fix bug in the invite section on task where the active query would be reset on state change, #11