Not major, but the variable name is misspelled... "entitiy" vs "entity".