corrected error, when no glob var