Fixed more logic errors with executeProcedure() method.