Fixed a bug with init when no there are no currencies in the database