Fix error in directive logic, 0.10.8