fixing bug with wrong (zero) amount on open