fix bugs in lenet