fix issue where fully qualified name has a . at the beginning if no package is declared