Gold prices erase their loss for the week