Fix setPadding method