Fixed bug in target