Fix error in namespace substitution regex