fixed results not saved bug