Fixed long template names not being displayed under certain circumstances