fixed btih bug with padding