fixes for not finding the right row