Fix nginx duplicate check issue