fixed error variable