Fixes bug in random profile display.