fix bug saving to db