Fixing bug with hash tree bg task