Fix hasattr spelling.