some bugfix for no wallet file