fixed compatibility problem with EHD