fix repository in preview mode