problem rendering template