loader not working properly with