Error when trying to create output device