fixed bug with BEIDV_ implementation