small optimization fix proceed_row method