Fix possible undefined variable