fixed nullpadding creation err