Fixed bug with missing target