Removes unused pointer error