Fixed bug in math clicklog save, added endtime