fixed last line bug edfreader