Fix task select bug