Fixes error in rand(ops)