bugfix for mask-mode formats when GWS < num_loaded_hashes caused segfaults.