fixed one bug, which appared when no ini file provided.