Bug fix in PI

Required hcat was missing.