fix crush on runtime