fix platform load bugs