fixed error when ini file isnn't used.