[fix] Added fix for require race condition