Bug fix for updateall function.