Fixed crashing after adding new expense from gui.