Fixed invocation of getattr.

Apparently I still don't know how to use it correctly. >_<