fix sign of residual form in realmorsesplit()