fixed bug in output of ids
fixed extents reference issue