DK: minor changes to fitted.secrgam