fixed a compatibiliy bug