fix for a case that last key is not ConfigHash