Bug fix in combineSGP