Fix error in using lopt