added pointer fixes #776