fixed bug where histogram wasnt appearing when refreshing the page after end of run