Fixed range selector in history graphs not working properly