Ok I fixed the issue, you have to add a Time node to every node in the material that uses time and check ignore pause