fix region select bug