fixes router handler for invite