fix a bug in ltmlp_init