Fix comm_path update on task switch (#1490041)