Fixed basic errors.