fixed a few small bugs
Merge remote-tracking branch 'origin/master'