fixed selection notification, contributed by wsliang@me.com