Fix to a frustrating bug

Finally fixed the “call to a non-static member function without an
object argument” error. I feel so cool for having figured it out.