Code crashed when key was label was not present