fix error missing dimensions()