This should fix any problems caused by the checkDimensions refactor