Fix nonstatic method being called statically