Fixed issue with selecting random moments