Fix discount check