convert register filepath to absolute path
addTarget bugfix