Tried to fix some minor errors