Fix loading and detection out of sync error.

Also add warning comments and fix debug message typo.

http://puu.sh/90BYI.jpg