fixed docready listener