fix bug when trying to get nested key from non-array member