fix bug causing "target" option not to work

the target option was not working - acting as if it was being ignored. this fixes that.