fixed a compatibility problem