dimensions.js fixes