fixed the loader not working