fixed error during Tom testing