bug fixing on retrieve random object from cloud