fixed long vector bug with random generators