bug fix in checking exclude objobject