fixed bug with 0 bandwidth in compute encounter