temporary fix for beta calculation