fix bug in mantras model