Undefined var; fix