small fixes in pad