fixed selections bug