I put together a stackblitz trying to reproduce the issue, and I could not it works fine for me, It just worked in both cases and I am not sure why. regardless I am putting it here, let me know if they helped you figure it out and let us know what exactly it was.