fix assignment errors