fix create element issue