fix with document.ready