Fix unexpected nil