fix reference to non-existent var