Fixed warning errors on build