System showing different gnome versions after update

This probably indicate app version, which is 40.

That probably indicate shell version which is still 38.

More info is in latest Stable Update topic: