Fix compile error if class has only one member