Fix repo script