fixes #69: fix reference errors