Removing ghost reference