fix default code type