Fix empty mark files' index error.