bugfix dom ready