Bug in a macro, interrupted progress

LibreOffice Writer 4.2.4.2
I want to create a macro to include a background image on a title page.
Problem: the macro stops immediately on the “Title Page” screen? instead of continuing to edit, etc…
thank you