Fix logic of class