bug for object nil check