pts-core: Workaround pass by ref issue