fixed ioctl