fix two ioctl