Fixed typo causing null references

-This will be in hotfix d