Fix yvt/openspades#285.
Merge pull request #286 from theunknownxy/issue285

Fix yvt/openspades#285.