Some Bug Fixes
Merge remote-tracking branch 'upstream/master'