Reset the valid join flag for AdHoc plan