Fixed bug preventing from being able to connect to printer

Hey,

There was a bug which prevented me from using latest version.