fixed an ugly bug. if statement wasn't helping change the .ini file