fix bug with target name