Fixing sync issue with loader in dev mode