fix some crash