Fixed bug in which first target did not display properly