Fix time filter bug