fixes #18

fixed an issue with equipping - conversion to boolean failed