Fixed bug loading when offline