fixing incorrect references