Fixed reference variable error.