Fix minor errors