Bookmarks ignoring my custom location

What happened?

I have

(setq bookmark-default-file "~/Dropbox/org/bookmarks")
(setq bookmark-save-flag 1)

in my config, and whenever I add a bookmark, it does save it, but instead of saving it into my bookmarks file, it still takes the default location /home/riccardo/.emacs.d/.local/etc/bookmarks only when I actually quit emacs does it actually save to the correct file.

What did you expect to happen?

That emacs respects the custom location that I define in my bookmarks.

Steps to reproduce

Add the code above to a config, maybe adjust the path for a reproduce

System information

Loading data dump...