Fix for select/deselect all

@jcbrand , This solved it for now :)