template directry name fix