Fix PRs 146 and 147
Created by: jorana
This is an error I made on github. This was already implemented in https://github.com/XENONnT/straxen/pull/146 but wrongfully reverted in https://github.com/XENONnT/straxen/pull/147. The commits a8d84648 and 81f89b4a shouldn't have been merged into master.