fixed the reddead error

fixed the error and it’s references