Fixed bug while reading selections