Fixed bug when using pointers in metadata