fixed a bug while reading configuration