was not working without use_module(library(assoc)).

Having updated prolog,
double clicking the file in windows did not work any longer (autoload
corrupted)?