updated undefined error var
Merge remote-tracking branch 'origin/master'