fix collision handling bug (from Bill Reeves)