fixed crashing when no data, weekly or monthly is selected, and nothing is queried