Fix 3 warnings