fixed up error position when assigning variables