Fixed bug causing incorrect row colors