variables in directive had a wrong name