Fix stuff in reference