fix error in new directive