Fix 2 compiler errors