fixed a little flaw in last commit, worked anyway but it was not clear what has been dereferenced at all