dimensions.js fix