fix a bug that fullpath command cannot be executed