fixed bugs in lecun