Import class; fix error thrown in some circumstances (rg4wp)