Fix fatal error for missing variable