Correct format error of directive