a small pointer bug