fix fcntl