fixed error with tosat