Fixed reading from config file