Fixed a bug.
add debug message.
make sure we can run update.