This commit fixes an issue on the random update function
This commit fixes an issue on the random update function