fix pading corner cases
Merge branch 'master' of github.com:scatnet/scatnet