fixed error assignment