Bugfix: was overwriting reference data