Fixed crash when pad was smaller than message