fix yvt/openspades#266