done issue #6 (fixed bug with nodes draw in firefox)