handling of multiple selections was not correct