Fixed access to undefined var assignment