fix assignment to dereference