fixed bug with inherited generic type params