small fix to index. eclipse is giving an error. fml