Bug that causes function the report last study as global corrected