fix calculating discount price