bug in directive