Select object, Layer preview bug

Steps to recreate:
Create 2 objects, each on a different layer.

When I select 1 object it shows me in the bottom which layer this object is on in the bottom, this is correct:

Now when I select the second object without first deselecting the first object it shows me a wrong layer: