Fixed bugs with aipy beam.