validation index error fixed