Bug on selecting the result rows fixed