fixed some pad bugs