fixed error in edf loader