fix loading script