Fixed bug on discount