fix bug in NDSio