Fixing bug
Undefined property: $var