Undefined var fixed