bug fix for row selection with apply discount