fix active directive support