fixed error when pad is too small