Index for the delegate fixed. Now it's zero-based