fix bugs in the integration
Merge remote-tracking branch 'origin/master'