Fix autostart issue

This fixed issue #1 for me.

I took the liberty to remove your debug log line.