Fixed bug in the inspector where target not set correctly.