Fixed a.ptr not working if a is a Struct