fixed a bug of AtLeastHandler.attach