fixed possible exception on malformed configuration