Fixed update errors

Fixed some errors that occurred when I was updating from build 1003 to
1004.