Fix pass the data to the template