updated customtarget default to object to avoid error on trying to access property of undefined