Fixing IndexOutOfRangeException using Fluent API.