fixed misc and clean task bugs in barsink