fixed get/set last report run and fixed small error