Fix Nio compile issue