possible fix on the disappearing element issue