fixed bugs for block device based KS