Bad reference fix