fixed the 1-fold error