minor ioctl fix