fix compiler waring and fix mszie_init() bug