error fixed, but templating not working again