fixed fatal for discount edit