fix generic reader template param