** Fixed bug in random type simulator that crashed when browser lost a
selection