fix a bug in initial optlocal of molecule