Fix for node 0.11 compatibility