Fix on migrate tamplate