fix discount properly