When reffering to a key, it reports undefined