bug fixes of lfm