remove warning about duplicate handle