Fixed bad pointer