fixed a time filtering bug