Fixed UpdateTable method