Solving problem of select plus 1