Set unit price earlier to prevent wrong comparison