Cmd Z Not Working on Latest Safari

A previously closed tab gets opened. The arrows were perfect, sometimes cmd z haven’t worked even when it was working. lol