fix bug for element not show up, have to wait