Fixed Undefined variable for preferred_langauge