Fixing random map selection if hook is not used.