Bug fixes
Merge branch 'master' into next