Fixed warning coding