Fix issue with text not displaying since change of directive