Bug fix in SqlServer procedure call