Fixed crash in currency edit