Fix repository masks