minor logic tweak to random modal opener