Fix 'require' directive so it inserts only once