Fix for getTarget method