fix error when editing expenses