Fix annotation calculation in functions ppName, ppQName.