Fixed sanity checks breaking at module load