index issue fixed