fixed reference drive when door is open. Fixes #1