fix 'end' event on node 0.11
0.6.1