Corrected assignment operator