fixed a bug when set time period
should use gte rather than gt