small bug fix in get_passband