ruby matrix colspace/rowspace refactor error fix