fix assignment error