Fixed bug that prevented setting top row and left column