Fixed all warnings in dataclass