Fix: price function not correctly used