fix Bug from method Nil and NotNil