fixed bug when wakeloader <script> is async