fix generics for plots