Fix invalid ioctl call - #106