fix for null ref... this was caused in the last commit. fixed now.