bug in fd_learn