Fix markAsRead, support infinite loop mode for tape