more bug corrections
Merge remote-tracking branch 'origin/master'