fixed error marking