historical report bug fixing