Fix autoref label generator and on activity