Have tried making new databases twice. Once by importing all objects, including the modules, and once by copying the code module by module. No help.
I do seem to notice that it mainly happens in 'new' modules (modules I recently added). All code from before always works, although in there...