Fixes document.ready BUG.