Fixed the 'setting rows/cols' issue