added check for link dict having key type