Fix a small bug when outputting {{sitename}} tag