Change so the activity target works

Its probably wrong but the activity target didn't work for me even from your example. Is there any implications in making this change in my code?