Fixed warning (fixed #852)