remove bad dereferencing