fix paddings for storage, fixes #1374