fix pointer warnings