bug fix when used with no target object