fixed file removal from index