fix dereference