Fix deferencing an object that's not a reference