FIX: fix some problems about compile failed