fixed duplicate warnings