Plugin casting is broken, trying to work this out