Fix crash
Merge branch 'master' into peercoin