fixed the update datapack state