index: fix amount handling