fixed bug with factoid insert