Double dot bug

Found this long standing bug cause, it was not caused by "_doWrite" but by the "_unbind" call

Should solve the issue.

Other changes are : 

* variable name consistency and a deprecated warning rewriting