fix dereferencing