fixed bad references