Fixed a bug in the grid_widget when using a number of items that isn't a nice modulo of the number of columns.