Fixed a script error when selecting multiple features.