corrected a dimensions handling bug