Fixed ugly bug on tx.commit() when records were called the unload(). Now the unsetDirty() is called to being correctly reused after commit.