Fix typo avoiding attribute error