Fix theta filter bug