Fixed a potential issue with equipping.