fixed bug with style for selected rows