Bugfix to have the reference column reflect the correct value