Padding fix

Signed-off-by: LumleyA <alex.lumley@ntlworld.com>