fixed an issue with equipping