Fixes a couple of minor errors