Fixes the  to  in directive as it is a js object