fix collector bug