fixed render template with functionmap  without layout