Fix function no param case