Fixed Issue With Wrong object type