Fixed a bug when converting name-spaces.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #319 from ddobrev/master

Fixed a bug when converting name-spaces