fix spinner
fix "undefined" before displaying doc