fixed null document body error