fixed bug with twice selecting rows