Fixed another metdata lookup bug