fix a pointer error