Fix close sidebar on recent selection