[FIX] Update average price creates incorrect entries