Fixed problem with negative amounts