Fix: amount is not a type