fixes namespace declaration in extended scenario