Fixed pointer location and id creation.