Fixed a timing issue when using the watch command.