Check for assignment errors