commit and redirect fix in overloaded saveModel method