Fix undefined key notice