Fix unsed variable warnings