Fix variable referencing in documentation