Fixed invalid template block issue.