a way to fix 2.6- and 2.6+ compatible problem