fixed dropdown behavior for tags
fixed off by one error for get_aggregate_data function, workaround for <> in dropdown issue