Fixed bug when accepting method source with no package