Fix extract pad data

Fixes issue #1320
Thanks a lot to @marcelklehr!