Fixed a bug with updating the Location and Target.