Fixed an issue with generated grid item ids.