fix nil value method call