solve some mode problem