Corrected assignment error