Fixed an issue when inserting a account