Nasty bug. The directory is not initialized if the event index is -1. In fact it...