fixed initialisazion in class warning/error