Fix for select not closing