fix for using outside EE

fix for getDimensions method