Fix searching tasks by contact