correct paddings

Fixes #537