fixes #43 cause by javascript reference to the same object