Small fixes on addRecord.(if doesn't work)