Fix bug that made require_stat script always fail