Re-added extra clear() statement that somehow got lost in the shuffle