fix a bug, changed debug messages
2.0.6