Fix/ff dom error (not ready)