Fixing get to non object on Reference