fixed directive bug