fixing first row not being selected