Fix runtime error (Problem was in calling operator= of base class instead of child class).
Fix runtime error (Problem was in calling operator= of base class instead of child class).