A few fixes related to anchors:

1. Fixed the logic of the reset of anchors
2. Fixed the LED equipped entity
3. Fixed compilation issues

Everything must still be tested!