Fixed a bug when converting name-spaces.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>