Are beds broken?

Whenever I put down a bed, I can't assign it to myself or other villagers, they just take whatever bed is available

Because I can't assign abed to myself, I can't set a spawn point, but I seen other people are able to assign beds

So are beds broken or is my game broken?