fix bug

template view