Fixed 2 bugs:
- Manual reassign of locked stuff was possible
- Buildings with 5 spaces were not considered correctly.