Fix some minor errors