fixed the locked up when using dynamic modules
was caused by loading modules during fork