fixes uninitialized 'self' variable