fix for discount error