Minor fix to class