Fix Reference bug