fixed bug in repotest