fixed a bug in create_account