added document DOMContentLoaded bug