Fixes issue with lib.py (unavailable variables)