fixed loading freeze

but not looping issue