updates bad reference