fix append and prepend padding