fixed bug in lrndnext