fixing broken referneces