fix https://github.com/licel/jcardsim/issues/51