util: trying to work around canvas weirdnesses in the hyperparameter searcher