fix reading configurefile bug