bugfix in reference