Fixed two typos

Pull request to fix issue #557.